package com.dao;

import java.util.List;

import com.model.User;

public class LoginDao {
	public static final LoginDao dao = new LoginDao();
	public User getUserByLoginId(String loginId){
		StringBuffer sqlBF = new StringBuffer();
		sqlBF.append(" SELECT * from user where login_id = ?");
		List<User> result = User.dao.find(sqlBF.toString(),loginId);
		if(result.size()>0){
			return result.get(0);
		}else{
			return null;
		}
	}
}
